package com.cpecc.model.wuzi;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cpecc.liucheng.model.HuanJie;
import com.cpecc.model.system.User;

@Entity
@Table(name = "DATA_WUZI_WEIXIU")
public class WeiXiu implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8479188447399657217L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@ManyToOne
	@JoinColumn(name="WUZI_ID")
	private WuZi wuZi;
	
	@ManyToOne
	@JoinColumn(name="USER_ID")
	private User user;
	
	@ManyToOne
	@JoinColumn(name="WEIXIUR_ID")
	private User weiXiuR;
	
	@Column
	private Date shenQingRQ;
	
	@Column(length=64)
	private String weiXiuYY;
	
	@ManyToOne
	@JoinColumn(name="HUANJIE_ID")
	private HuanJie huanJie;
	
	@Column(length=32)
	private String weiXiuShang;
	
	@Column
	private double feiYong;
	
	@Column(length=64)
	private String weiXiuSM;

	@Column(name = "LIUCHENG_ID")
	private String liuChengId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public WuZi getWuZi() {
		return wuZi;
	}

	public void setWuZi(WuZi wuZi) {
		this.wuZi = wuZi;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getShenQingRQ() {
		return shenQingRQ;
	}

	public void setShenQingRQ(Date shenQingRQ) {
		this.shenQingRQ = shenQingRQ;
	}

	public String getWeiXiuYY() {
		return weiXiuYY;
	}

	public void setWeiXiuYY(String weiXiuYY) {
		this.weiXiuYY = weiXiuYY;
	}

	
	public String getWeiXiuShang() {
		return weiXiuShang;
	}

	public void setWeiXiuShang(String weiXiuShang) {
		this.weiXiuShang = weiXiuShang;
	}

	public double getFeiYong() {
		return feiYong;
	}

	public void setFeiYong(double feiYong) {
		this.feiYong = feiYong;
	}

	public String getWeiXiuSM() {
		return weiXiuSM;
	}

	public void setWeiXiuSM(String weiXiuSM) {
		this.weiXiuSM = weiXiuSM;
	}
	
	public HuanJie getHuanJie() {
		return huanJie;
	}

	public void setHuanJie(HuanJie huanJie) {
		this.huanJie = huanJie;
	}	

	public User getWeiXiuR() {
		return weiXiuR;
	}

	public void setWeiXiuR(User weiXiuR) {
		this.weiXiuR = weiXiuR;
	}

	public String getLiuChengId() {
		return liuChengId;
	}

	public void setLiuChengId(String liuChengId) {
		this.liuChengId = liuChengId;
	}

	public WeiXiu(String id, WuZi wuZi, User user, User weiXiuR,
				  Date shenQingRQ, String weiXiuYY, HuanJie huanJie,
				  String weiXiuShang, double feiYong, String weiXiuSM) {
		super();
		this.id = id;
		this.wuZi = wuZi;
		this.user = user;
		this.weiXiuR = weiXiuR;
		this.shenQingRQ = shenQingRQ;
		this.weiXiuYY = weiXiuYY;
		this.huanJie = huanJie;
		this.weiXiuShang = weiXiuShang;
		this.feiYong = feiYong;
		this.weiXiuSM = weiXiuSM;
	}

	public WeiXiu() {
		super();
	}	
}
